package com.strato.mvc.crumbs.v1_0_0;

import java.util.ArrayList;
import java.util.List;

public class CrumbsBuilder {
	public static String crumbsAttrName="crumbs";

	public static class CrumbsArray{
		public List<Crumbs> crumbsArray=new ArrayList<Crumbs>();
		public CrumbsArray addCrumbs(String label,String url){
			Crumbs crumbs=new Crumbs();
			crumbs.setLabel(label);
			crumbs.setUrl(url);
			crumbsArray.add(crumbs);
			return this;
		}
		public List<Crumbs> getCrumbsArray() {
			return crumbsArray;
		}
		
	}
	
	public static CrumbsArray create(){
		return new CrumbsArray();
	}
}
